@import "./theme.scss";

@function p2r($px) {
  @return ($px / 75px) * 1rem;
}

.fontR {
  color: $theme-red;
}

.fontW {
  color: #fff;
}

.bgW {
  background: #fff;
}

.bgR {
  background: $theme-red;
}

.bgG {
  background: $theme-bg-gray;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.cf:after {
  content: '.';
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  clear: both;
}

.flex-wrap {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wp {
  flex-wrap: wrap;
}

.flex-nowp {
  flex-wrap: nowrap;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.flex-center {
  align-items: center;
}

.flex-start {
  align-items: flex-start;
}

.flex-end {
  align-items: flex-end;
}

.flex-bl {
  align-items: flex-baseline;
}

.flex-sb {
  justify-content: space-between;
}

.flex-sa {
  justify-content: space-around;
}

.flex-jc {
  justify-content: center;
}

.bold {
  font-weight: 700;
}

.textC {
  text-align: center;
}

.textR {
  text-align: right;
}

.textL {
  text-align: left;
}

.f11 {
  font-size: 11px;
}

.f12 {
  font-size: 12px;
}

.f13 {
  font-size: 13px;
}

.f14 {
  font-size: 14px;
}

.f15 {
  font-size: 15px;
}

.f16 {
  font-size: 16px;
}

.f17 {
  font-size: 17px;
}

.f18 {
  font-size: 18px;
}

.lineH_1 {
  line-height: 1;
}

.lineH_1.5 {
  line-height: 1.5;
}

.noWrap {
  white-space: nowrap
}

.wrap {
  white-space: wrap
}

.posAbs {
  position: absolute;
}

.posRel {
  position: relative;
}

.posFix {
  position: fixed;
}

.pd10 {
  padding: 10px;
}

.pd15 {
  padding: 15px;
}

.pdr10 {
  padding-right: 10px;
}

.pdr15 {
  padding-right: 15px;
}

.pdl10 {
  padding-left: 10px;
}

.pdl15 {
  padding-left: 15px;
}

.pdb10 {
  padding-bottom: 10px;
}

.pdb15 {
  padding-bottom: 15px;
}

.pdt10 {
  padding-top: 10px;
}

.pdt15 {
  padding-top: 15px;
}

.mg0auto {
  margin: 0 auto;
}

.mg10 {
  margin: 10px;
}

.mg15 {
  margin: 15px;
}

.mgt10 {
  margin-top: 10px;
}

.mgt15 {
  margin-top: 15px;
}

.mgr10 {
  margin-right: 10px;
}

.mgr15 {
  margin-right: 15px;
}

.mgb10 {
  margin-bottom: 10px;
}

.mgb15 {
  margin-bottom: 15px;
}

.mgl10 {
  margin-left: 10px;
}

.mgl15 {
  margin-left: 15px;
}

.w100 {
  width: 100%;
}

.h100 {
  height: 100%;
}

.overh,
.overH {
  overflow: hidden;
}

.block {
  display: block;
}

.inlineb,
.inlineB {
  display: inline-block;
}

.btn-box {
  margin-top: 20px;
  padding: 0 10px;

  .btn {
    margin-bottom: 10px;
  }
}

.br5 {
  border-radius: 5px;
}

.br10 {
  border-radius: 10px;
}

.brC {
  border-radius: 50%;
}

.br100 {
  border-radius: 100px;
}

.btn-type-1 {
  border: 1px solid #ccc;
  background: white;
  border-radius: 3px;
  padding: 2px 5px;
}

.btn-noborder {
  border: 0;
  background: none;
  border-radius: 0;
  padding: 2px 5px;
}

.btn {
  text-align: center;
  height: 45px;
  line-height: 45px;
  font-size: 16px;
  transition: all 0.4s ease-out;

  &.orange {
    background-color: $theme-orange;
    color: white;
  }

  &.orange.plain {
    color: $theme-orange;
    background-color: white;
    border: 1px solid $theme-orange;
  }

  &.disabled {
    opacity: 0.3;
  }

  &.borderR {
    border-radius: 100px;
  }
}

.extend {
  &:after {
    content: '';
    display: block;
    position: absolute;
    left: -10px;
    right: -10px;
    top: -10px;
    bottom: -10px;
  }
}

.redBag {
  &:before {
    content: '';
    display: inline-block;
    vertical-align: text-top;
    width: 13px;
    height: 16px;
    margin-right: 5px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('');
  }
}

.maizeng {
  &:before {
    content: '';
    display: inline-block;
    vertical-align: baseline;
    width: 26px;
    height: 14px;
    margin-right: 5px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('');
  }
}

.manjian {
  &:before {
    content: '';
    display: inline-block;
    vertical-align: baseline;
    width: 26px;
    height: 14px;
    margin-right: 5px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('');
  }
}

.inline {
  &>* {
    display: inline-block;
    vertical-align: middle;
  }
}

.back {
  width: 30px;
  height: 30px;
  position: relative;

  i {
    content: '';
    height: 10px;
    width: 10px;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(135deg);
    top: 10px;
    left: 12px;
    position: absolute;
  }
}

.gapH {
  width: 10px;
}

.gapV {
  height: 10px;
}

.h100vh {
  height: 100vh;
}

.mg12 {
  margin: 12px;
}

.pd12 {
  padding: 12px;
}